package com.wakaka.mapper;

import com.wakaka.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface DeptMapper {
    public int add(@Param("name") String name);

    public Dept queryById(@Param("id") long id);

    public List<Dept> queryAll();
}
